﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Utils;

namespace Web
{
    public partial class DataToExcelTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            DataSet ds = null;
            string[] caption = { "经销商ID", "经销商全称", "经销商简称", "城市", "黑名单类型", "状态", "操作次数" };
            string[] columns = { "DealerId", "DealerFullName", "DealerShortName", "cName", "BlackClass", "MaicheStatusName", "OperationCount" };
            ExcelHelper.ExportDataSetToFile(caption, columns, ds, "经销商黑名单列表.xls");
        }
    }
}